import { ref, reactive } from 'vue'
import { tableData } from './table'
import { page } from '@api/psninfo/psninfo.js'

export let formItems = [{ type: 'input', label: '姓名', value: 'name' }]
export let rules = {}
export let formData = reactive({
  name: '',
})
export const form = ref(null)
export function submit() {
  page({ pageNo: 1, pageSize: 10 }).then(res => {
    tableData.length = 0
    tableData.push(...res.data)
  })
}
